export class PageForm {
  draw: number;
  page: number;
  pageSize: number;
  order: String;
  sort: String;
  params?: any;
 // 格式化分页参数
  static getPageForm(data: any) {
    return {
      draw: data['draw'],
      page: data['start'],
      pageSize: data['length'],
      order: data['columns'][data['order'][0]['column']]['data'],
      sort: data['order'][0]['dir']
    };
  }
}
